﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace fm2
{
	public class DirItem : INodeElement, IComparable<DirItem>
	{
		public string Name { get; set; }
		public List<FileItem> Items = new List<FileItem>();
		public StatusElement Status { get; set; }
		public bool _Selected { get; set; }

		public DirItem(string name)
		{
			Name = name;
			Status = StatusElement.Created;
		}
		
		public int CompareTo(DirItem item)
		{
			return Name.CompareTo(item.Name);
		}

		public override string ToString()
		{
			return Name;
		}
	}
}
